<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<meta charset="utf-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>医疗问答系统注册</title>

<style type="text/css">
body {
	background-color: #D3D3D3;
}
body,td,th {
	font-size: 16px;
}
</style>
</head>
<script language="javascript">
function check()
{
 if (document.form1.name.value=="")
 {
   window.alert("请输入用户名");
   document.form1.name.focus();
   return false;
   }
  if (document.form1.pass.value!=document.form1.confirm.value)
  {
    window.confirm("对不起，密码有误");
    document.form1.pass.focus();
    return false;
  }
 
  if (document.form1.email.value=="")
  {
     window.alert("请输入E-mail地址！");
	 document.form1.email.focus();
	 return false;
   }
 if ((document.form1.email.value.indexOf('@',0)==-1)||(document.form1.email.value.indexOf('.',0)==-1))
 {
   window.alert("输入E-mail地址有误！");
   document.form1.email.focus();
   return false;
  }
  document.form1.submit();
}
</script>
<body>
<h1 align="center" color="red" size="3" face="楷体">用户注册</h1>
<hr color="red">
<form name="form1" method="get" action="zhuce.jsp">
  <table align="center" width="70%" bgcolor="#778899"  background="image/bgp.jpg" >
  <tr>
<td align="right"><strong>用户名</strong>:</td>
<td align="left"><input type="text" size="30" name="user" id="user">
</td>
</tr>
<tr>
<td align="right"><strong>密码</strong>:</td>
<td align="left"><input type="password" size="20" name="pass">
</td>
</tr>
<tr>
<td align="right"><strong>再输入一次密码</strong>:</td>
<td align="left"><input type="password" size="20" name="confirm">
</td>
</tr>
<tr>
<td align="right"><strong>性别 </strong>:</td>
<td align="left">
<input type="radio"  value="男" checked name="sex"男>男
<input type="radio" value="女" name="sex"女>女
</td>
</tr>
<tr>
<td align="right"><strong>职业</strong>:</td>
<td align="left">
<select size="1" name="work">
<option>管理员</option>
<option>医生</option>
<option>医学生</option>
<option>咨询用户</option>
</select>
</td>
</tr>
<tr >
<td align="right"><strong>邮箱地址</strong>:</td>
<td align="left">
<input type="text" size="20" name="email">
</td>
</tr>
<tr>
<td align="right" ><strong>需求</strong>:</td>
<td align="left">
<input type="checkbox" name="CC" value="内科">内科
<input type="checkbox" name="CC" value="外科">外科
<input type="checkbox" name="CC" value="儿科">儿科
<input type="checkbox" name="CC" value="五官科">五官科
<input type="checkbox" name="CC" value="妇科">妇科
<input type="checkbox" name="CC" value="心理健康">心理健康
<input type="checkbox" name="CC" value="药品咨询">药品咨询
<input type="checkbox" name="CC" value="中医">中医
</td>
</tr>

<td align="right"><strong>具体需求</strong>:</td>
<td align="left"><textarea rows="8" name="des" cols="60"></textarea></td>
</tr>
<tr >
<td colspan="2" align="center">
<input type="button" value="提交" name="B1" onclick="check()">
<input type="button" value="重置" name="B2" onclick="check()">
</td>
</tr>
 <tr>
<td>
 

</body>
</html>
